import { http } from "@/utils/http";

type ListResult = {
  code: number;
  message: string;
  list: Array<any>;
};

export function getListApi(params?: object): Promise<ListResult> {
  return http.request({
    url: "/list/get",
    method: "get",
    params
  });
}

export function getListApiError(data?: object): Promise<ListResult> {
  return http.request({
    url: "/list/error",
    method: "post",
    data
  });
}

// 获取住房保障列表 /api/zfbz/zfbz
export function zfbz(data?: object): Promise<{}> {
  return http.request({
    url: "/api/zfbz/zfbz",
    method: "post",
    data
  });
}
// 获取住房保障详情 /api/zfbz/zfbz_detail
export function zfbz_detail(data?: object): Promise<{}> {
  return http.request({
    url: "/api/zfbz/zfbz_detail",
    method: "post",
    data
  });
}



// 获取业务受理信息 /api/index/ywsl
export function ywsl(data?: object): Promise<{}> {
  return http.request({
    url: "/api/index/ywsl",
    method: "post",
    data
  });
}




